/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.easoftware.code.mb;

import net.easoftware.code.error.EaError;

/**
 *
 * @author eliu
 */
public interface GenericMaintenanceWrapper {

    /**
     *
     * @return
     */
    public String getFormPage();

    /**
     *
     * @return
     */
    public String getGridPage();

    /**
     *
     * @throws EaError
     */
    public void actionSave() throws EaError;

    /**
     *
     * @throws EaError
     */
    public void actionUpdate() throws EaError;

    /**
     *
     * @throws EaError
     */
    public void actionDelete() throws EaError;

    /**
     *
     * @throws EaError
     */
    public void actionNew() throws EaError;

    /**
     *
     * @throws EaError
     */
    public void toExcel() throws EaError;

    /**
     *
     * @throws EaError
     */
    public void toPDF() throws EaError;

    /**
     *
     * @param ref
     * @throws EaError
     */
    public void actionSelect() throws EaError;

    public abstract void actionCustom1() throws EaError;

    public abstract void actionCustom2() throws EaError;

    public abstract String getActionCustom1Label();

    public abstract String getActionCustom2Label();

    public abstract boolean isEnabledActionCustom1();

    public abstract boolean isEnabledActionCustom2();
}
